spb/company-atlas
Public
Python 66.3%
TypeScript 22.7%
JavaScript 8.6%
HTML 1.4%
CSS 0.7%
1import { api, safe } from '@/lib/api';2import { OG_CONTENT_TYPE, OG_SIZE, renderCompanyOg, renderSiteOg } from '@/lib/og';3import { SITE_NAME } from '@/lib/site';45export const alt = `Company profile on ${SITE_NAME}`;6export const size = OG_SIZE;7export const contentType = OG_CONTENT_TYPE;89export default async function CompanyTwitterImage({ params }: { params: Promise<{ slug: string }> }) {10 const { slug } = await params;11 const c = await safe(api.company(slug));12 if (!c) return renderSiteOg(await safe(api.stats()));13 return renderCompanyOg(c);14}15